/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-03 15:21:01
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-03 15:37:53
 * @别瞎看: 你个无脑牛马
 */
public class Test_Function{
    //定义一个方法，求两个整型数之和
    public static int getSum(int a,int b){
        return a+b;
    }
    //定义一个方法 求三个整型数的平均数
    public static int getAverage(int m,int l,int n){
        return (m+l+n)/3;
        
    }
    public static void main(String[] args) {
        int result=getSum(20,30);
        System.out.println("result:"+result);
        double result2=getAverage(20, 30, 40);
        System.out.println("result2:"+result2);

    }
}